import numpy
import matplotlib

f = open("data_set/mnist_train.csv")
l = f.readline()
all_values = l.split(",")
image_array = numpy.asfarray(all_values[1:]).reshape((28, 28))
matplotlib.pyplot.imshow(image_array, cmap = "Greys", interpolation = "None")
